home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Demos / Bowers Development / AppMaker 2.0b5 / Examples / TCL / AMReminder / zAdd.cp < prev    next >
Text File  |  1996-03-19  |  3KB  |  104 lines

  1. /* zAdd.cp -- dialog methods */
  2. /* Created 01/01/95 12:01 PM by AppMaker */
  3.  
  4. /*    We recommend that you not modify this module and instead modify        */
  5. /*    its subclass, Add.  The 'z' prefix on this module marks        */
  6. /*    a module which is likely to be regenerated by AppMaker after you    */
  7. /*    make changes to the user interface.  The modules without the 'z'    */
  8. /*    prefix will not be regenerated by AppMaker unless you delete them.    */
  9. /*    Using a separate subclass to override the AppMaker-generated code    */
  10. /*    lets you regenerate code without losing your hand-coded changes.    */ 
  11.  
  12. #include <Commands.h>
  13. #include <CBartender.h>
  14. #include <CDialog.h>
  15. #include <CAMButton.h>
  16. #include <CPicture.h>
  17. #include <CAMStaticText.h>
  18. #include <CAMDialogText.h>
  19. #include <CLabeledGroup.h>
  20. #include <CAMRadioControl.h>
  21. #include <CAMCheckBox.h>
  22. #include <CAMPopupPane.h>
  23. #include "zAdd.h"
  24.  
  25. extern CDesktop        *gDesktop;
  26. extern CBartender    *gBartender;
  27.  
  28. #define AddID    1001
  29.  
  30. /*----------*/
  31. void    ZAdd::IZAdd    (CDirectorOwner        *aSupervisor)
  32. {
  33.     CView            *enclosure;
  34.     CBureaucrat        *supervisor;
  35.  
  36.     inherited::IAMDialogDirector (AddID, aSupervisor);
  37.  
  38.     enclosure = itsWindow;
  39.     supervisor = itsWindow;
  40.  
  41.         itsOKButton = new CAMButton;
  42.         itsOKButton->IViewRes ('CtlP', 1009, enclosure, supervisor);
  43.  
  44.         itsCancelButton = new CAMButton;
  45.         itsCancelButton->IViewRes ('CtlP', 1010, enclosure, supervisor);
  46.  
  47.         itsLogoPict = new CPicture;
  48.         itsLogoPict->IViewRes ('PctP', 1011, enclosure, supervisor);
  49.  
  50.         itsAddReminderForLabel = new CAMStaticText;
  51.         itsAddReminderForLabel->IViewRes ('AETx', 1012, enclosure, supervisor);
  52.  
  53.         itsDateLabel = new CAMStaticText;
  54.         itsDateLabel->IViewRes ('AETx', 1013, enclosure, supervisor);
  55.  
  56.         itsDateField = new CAMDialogText;
  57.         itsDateField->IViewRes ('ADTx', 1014, enclosure, supervisor);
  58.  
  59.         itsTimeLabel = new CAMStaticText;
  60.         itsTimeLabel->IViewRes ('AETx', 1015, enclosure, supervisor);
  61.  
  62.         itsTimeField = new CAMDialogText;
  63.         itsTimeField->IViewRes ('ADTx', 1016, enclosure, supervisor);
  64.  
  65.         itsAmPmGroup = new CLabeledGroup;
  66.         itsAmPmGroup->IViewRes ('LGrp', 1017, enclosure, supervisor);
  67.         itsAMRadio = new CAMRadioControl;
  68.         itsAMRadio->IViewRes ('CtlP', 1018, itsAmPmGroup, itsAmPmGroup);
  69.         itsPMRadio = new CAMRadioControl;
  70.         itsPMRadio->IViewRes ('CtlP', 1019, itsAmPmGroup, itsAmPmGroup);
  71.  
  72.         itsMessageLabel = new CAMStaticText;
  73.         itsMessageLabel->IViewRes ('AETx', 1020, enclosure, supervisor);
  74.  
  75.         itsMessageField = new CAMDialogText;
  76.         itsMessageField->IViewRes ('ADTx', 1021, enclosure, supervisor);
  77.  
  78.         itsWhenRemindingLabel = new CAMStaticText;
  79.         itsWhenRemindingLabel->IViewRes ('AETx', 1022, enclosure, supervisor);
  80.  
  81.         itsDisplayIconCheck = new CAMCheckBox;
  82.         itsDisplayIconCheck->IViewRes ('CtlP', 1023, enclosure, supervisor);
  83.  
  84.         itsDisplayAlertCheck = new CAMCheckBox;
  85.         itsDisplayAlertCheck->IViewRes ('CtlP', 1024, enclosure, supervisor);
  86.  
  87.         itsPlaySoundCheck = new CAMCheckBox;
  88.         itsPlaySoundCheck->IViewRes ('CtlP', 1025, enclosure, supervisor);
  89.  
  90.         itsSoundPopup = new CAMPopupPane;
  91.         itsSoundPopup->IViewRes ('APop', 1026, enclosure, supervisor);
  92.  
  93. } /* IZAdd */
  94.  
  95. /*----------*/
  96. void    ZAdd::UpdateMenus    (void)
  97. {
  98.     inherited::UpdateMenus ();
  99.  
  100.  
  101. } /* UpdateMenus */
  102.  
  103. /* zAdd.cp */
  104.